'use strict';

module.exports = appInfo => {
  const config = exports = {};

  // use for cookie sign key, should change to your own and keep security
  config.keys = appInfo.name + '_1521982368093_2933';

  config.isdev = true;

  config.security = {
    csrf: {
      enable:false,
    },
  }

  config.cdnHost = '//localhost:3000/static';
  
  config.view = {
    defaultViewEngine: 'nunjucks',
    mapping: {
      '.tpl': 'nunjucks',
    },
  };

  config.static = {
    maxAge: 31536000,
  };

  // add your config here
  config.middleware = [];

  config.socket = {
    port: 6888,
  };

  return config;
};
